package com.qf.dao;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @author Wy
 * @version V1.0
 * @Project MavenDemo
 * @Package com.qf.dao
 * @Description:
 * @Date 2022/6/30 21:55
 */
public interface UserDao {

  /*  @Select("select * FROM t_users")*/
     public List<User> findAll();



     @Delete("delete from t_users where id=#{id}")
      public int delete(Integer id);


    /* @Insert("insert  into t_users (name, password, sex, birthday, registTime)\n" +
             "        value(#{name}, #{password}, #{sex}, #{birthday}, #{registTime})")*/
     public int addUser(@Param("user") User user);


     @Update("update t_users SET name=#{name} where id=#{id}")
     public  int update(User user);
}
